package com.ntd.study.base.type.tree;

import lombok.Data;

/**
 * 二叉树
 *
 * @author liuwenju
 * @date 2021/5/6 11:10
 */
@Data
public class BinaryTreeNode<T> {
    private int key;
    private T data;
    private BinaryTreeNode<T> leftNode;
    private BinaryTreeNode<T> rightNode;
    private BinaryTreeNode<T> parentNode;

    public BinaryTreeNode(int key, T data) {
        this.data = data;
        this.key = key;
    }
}
